import React from 'react';
import {Route,IndexRoute} from 'react-router'
import App from '../components/admin/App'
import BookManage from '../components/admin/BookManage'
import MessgeManage from '../components/admin/MessgeManage'
import CourseManage from '../components/admin/CourseManage'
import ArticleManage from '../components/admin/ArticleManage'
import CourseExamine from '../components/admin/CourseExamine'
import QuestionManage from '../components/admin/QuestionManage'
import PointShopManage from '../components/admin/PointShopManage'
import PointManage from '../components/admin/PointManage'
import BasisSet from '../components/admin/BasisSet'
import QuestionDetail from '../components/admin/QuestionDetail'
import DataAnalysis from '../components/admin/DataAnalysis'
import PointDetail from '../components/admin/PointDetail'
import ArticleExamine from '../components/admin/ArticleExamine'
import CourseDetail from '../components/admin/CourseDetail'
import AddQuestion from '../components/admin/AddQuestion'
import EditQuestion from '../components/admin/EditQuestion'
import BroadManagement from '../components/admin/BroadManagement'
import ArticleDetail from '../components/admin/ArticleDetail'
import EditCourse from '../components/admin/EditCourse'
import Statistical from '../components/admin/Statistical'
const adminRoutes = (
    <Route path='admin' component={App}>
            <IndexRoute component={MessgeManage}/>
            <Route path='BookManage' component={BookManage} />
            <Route path='MessgeManage' component={MessgeManage} />
            <Route path='CourseManage' component={CourseManage} />
            <Route path='ArticleManage' component={ArticleManage} />
            <Route path='CourseExamine/:id' component={CourseExamine} />
            <Route path='CourseDetail/:id' component={CourseDetail} />
            <Route path='QuestionManage' component={QuestionManage} />
            <Route path='PointShopManage' component={PointShopManage} />
            <Route path='PointManage' component={PointManage} />
            <Route path='BasisSet' component={BasisSet} />
            <Route path='QuestionDetail/:id' component={QuestionDetail} />
            <Route path='DataAnalysis' component={DataAnalysis} />
            <Route path='PointDetail/:id' component={PointDetail} />
            <Route path='ArticleExamine/:id' component={ArticleExamine} />
            <Route path='AddQuestion' component={AddQuestion} />
{           <Route path='EditQuestion/:id' component={EditQuestion} />}
            <Route path='BroadManagement' component={BroadManagement} />
            <Route path='ArticleDetail/:id' component={ArticleDetail}/>
            <Route path='EditCourse/:id' component={EditCourse}/>
            <Route path="Statistical" component={Statistical}/>
    </Route>

);
export default adminRoutes;